<script setup> 
import { login, upload } from './api'
import MyUpload from './components/MyUpload/index.vue'
const loginHandle = async () => {
  const res = await login({
    userAccount: 'admin',
    userPassword: '12345678'
  })
  console.log(res)
  ElMessage.success('登录成功')
  
}
</script>

<template> 
    <el-button type="primary" @click="loginHandle">登录</el-button>
    <MyUpload /> 
</template>

<style scoped> 
</style>
